package org.smart.framework.core.util;

import org.apache.commons.lang3.ArrayUtils;

/**
 * @author lyric
 * @version 1.0.0
 * @date 2017/2/9 9:41
 * @description 数组工具类
 */
public final class ArrayUtil {

    /**
     * @author lyric
     * @description 判断数组是否为空
     * @param array
     * @return
     */
    public static boolean isEmpty(Object[] array) {
        return ArrayUtils.isEmpty(array);
    }

    /**
     * @author lyric
     * @description 判断数组是否非空
     * @param array
     * @return
     */
    public static boolean isNotEmpty(Object[] array) {
        return !ArrayUtils.isEmpty(array);
    }
}
